home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Resources / Chat & Communication / Digsby build 37 / digsby_setup.exe / lib / __future__.pyo (.txt) next >
Python Compiled Bytecode  |  2008-10-13  |  2KB  |  43 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyo (Python 2.5)
  3.  
  4. all_feature_names = [
  5.     'nested_scopes',
  6.     'generators',
  7.     'division',
  8.     'absolute_import',
  9.     'with_statement']
  10. __all__ = [
  11.     'all_feature_names'] + all_feature_names
  12. CO_NESTED = 16
  13. CO_GENERATOR_ALLOWED = 0
  14. CO_FUTURE_DIVISION = 8192
  15. CO_FUTURE_ABSOLUTE_IMPORT = 16384
  16. CO_FUTURE_WITH_STATEMENT = 32768
  17.  
  18. class _Feature:
  19.     
  20.     def __init__(self, optionalRelease, mandatoryRelease, compiler_flag):
  21.         self.optional = optionalRelease
  22.         self.mandatory = mandatoryRelease
  23.         self.compiler_flag = compiler_flag
  24.  
  25.     
  26.     def getOptionalRelease(self):
  27.         return self.optional
  28.  
  29.     
  30.     def getMandatoryRelease(self):
  31.         return self.mandatory
  32.  
  33.     
  34.     def __repr__(self):
  35.         return '_Feature' + repr((self.optional, self.mandatory, self.compiler_flag))
  36.  
  37.  
  38. nested_scopes = _Feature((2, 1, 0, 'beta', 1), (2, 2, 0, 'alpha', 0), CO_NESTED)
  39. generators = _Feature((2, 2, 0, 'alpha', 1), (2, 3, 0, 'final', 0), CO_GENERATOR_ALLOWED)
  40. division = _Feature((2, 2, 0, 'alpha', 2), (3, 0, 0, 'alpha', 0), CO_FUTURE_DIVISION)
  41. absolute_import = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), CO_FUTURE_ABSOLUTE_IMPORT)
  42. with_statement = _Feature((2, 5, 0, 'alpha', 1), (2, 6, 0, 'alpha', 0), CO_FUTURE_WITH_STATEMENT)
  43.